﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data.SqlClient;

namespace ProjetoDLL.DAO
{
    public abstract class BaseDAO<T>
    {
        public abstract void Inserir(T obj);
        public abstract void Atualizar(T obj);
        public abstract void Excluir(T obj);
        public abstract T RecuperarUm(int chave);
        public abstract List<T> RecuperarTodos();

        public static void exec_comando(string query, SqlConnection conexao)
        {
            SqlCommand cmd = new SqlCommand(query, conexao);

            conexao.Open();
            cmd.ExecuteReader();
            conexao.Close();
        }
    }
}
